package com.jt.demo1.proty1;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(SpringConfig.class);
        User bean = a.getBean(User.class);
        User user= (User) JDKProxy.getProxy(bean);
        System.out.println(user.getClass());
        user.hello();
    }
}
